---
title: Basics
description: Learn the basics of using the Vercel AI SDK in your Next.js Pages Router application.
---

# Basics

One of the most basic things you can do with language models is to generate text. In this section, you will learn to generate text, and also stream it to the client.

Beyond text, you will also learn to generate structured data by providing a schema of your choice, and also stream it to the client.

<IndexCards
  cards={[
    {
      title: 'Generate Text',
      description: 'Learn how to generate text.',
      href: '/examples/next-pages/basics/generating-text',
    },
    {
      title: 'Stream Text Generation',
      description: 'Learn how to stream a text generation.',
      href: '/examples/next-pages/basics/streaming-text-generation',
    },
    {
      title: 'Generate Object',
      description: 'Learn how to generate structured data.',
      href: '/examples/next-pages/basics/generating-object',
    },
    {
      title: 'Stream Object Generation',
      description: 'Learn how to stream a structured data generation.',
      href: '/examples/next-pages/basics/streaming-object-generation',
    },
  ]}
/>
